package net.sk.china.front.service.system;

import com.baomidou.mybatisplus.extension.service.IService;
import net.sk.china.common.model.system.SystemConfig;

import java.util.List;

/**
 * SystemConfigService 接口
 * +----------------------------------------------------------------------
 * // | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * // +----------------------------------------------------------------------
 * // | Copyright (c) 2018-2024 聊来 All rights reserved.
 * // +----------------------------------------------------------------------
 * // | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * // +----------------------------------------------------------------------
 * // | @Author: 聊来 <18970881148@qq.com>
 * // +----------------------------------------------------------------------
 * // | DateTime: 2024/6/4 15:25
 * // +----------------------------------------------------------------------
 */

public interface SystemConfigService extends IService<SystemConfig> {

    /**
     * 根据menu name 获取 value
     * @param name menu
     * @return {@code String}
     */
    String getValueByKey(String name);

    /**
     * 根据 name 获取 value 找不到抛异常
     * @param name menu
     * @return {@code String}
     */
    String getValueByKeyException(String name);

    /**
     * 同时获取多个配置
     * @param keys 多个配置key
     * @return {@code List<String>}
     */
    List<String> getValuesByKes(List<String> keys);
}
